class Student():
    def eat(self):
        print(f'self:{id(self)}')
        print('学生正在吃饭')

xiaoming = Student()
print(f'xiaoming:{id(xiaoming)}')
xiaoming.eat()

xiaohong= Student()
print(f'xiaohong:{id(xiaoming)}')
xiaohong.eat()
